package data;

import java.util.LinkedList;

import data.entity.Entity;
import data.entity.EntityFactory;
import data.entity.player.Player;
import data.input.Cursor;
import data.map.TerrainMap;

public class GameData {
	
	private Cursor cursor;
	private TerrainMap map;
	private Player player;
	private LinkedList<Entity> entities;
	private EntityFactory entityFactory;
		
	public GameData(Cursor c, TerrainMap m, Player p, EntityFactory entityFactory){
		cursor = c;
		map = m;
		player = p;
		entities = new LinkedList<Entity>();
		this.entityFactory = entityFactory;
	}

	public Cursor getCursor() {
		return cursor;
	}

	public void setCursor(Cursor cursor) {
		this.cursor = cursor;
	}

	public TerrainMap getMap() {
		return map;
	}

	public void setMap(TerrainMap map) {
		this.map = map;
	}

	public Player getPlayer() {
		return player;
	}

	public void setPlayer(Player player) {
		this.player = player;
	}

	public LinkedList<Entity> getEntities() {
		return entities;
	}

	public void addEntity(Entity e){
		entities.add(e);
	}

	public EntityFactory getEntityFactory() {
		return entityFactory;
	}


	
}
